package com.course.entity;
/*
@author By 林中小鸟
@package  com.self.introduction.entity
@create 2021 - 11 - 2021\11\26 0026
@QQ: 357182695
@Em: themooncss@gmail.com
*/

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("file")
@Data
public class File {
    @TableId(type = IdType.AUTO)
    private String id;
    @TableField(value = "uid")
    private String uid;
    @TableField(value = "file_name",condition = SqlCondition.LIKE)
    private String fileName;
    @TableField(value = "file_path")
    private String filePath;
    @TableField(value = "file_md5")
    private String fileMd5;
    @TableField(value = "file_source")
    private String fileSource;
    @TableField(value = "create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField(value = "shard_index")
    private Integer shardIndex;
    @TableField(value = "shard_size")
    private Integer shardSize;
    @TableField(value = "shard_total")
    private Integer shardTotal;
}
